<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>测试锚点</title>
</head>
<body>
    <a name="yilou"></a>
    <div style="height: 80vh;background-color: green;"></div>
    <div style="height: 80vh;background-color: red;"></div>
    <a name="sanlou"></a>
    <div style="height: 80vh;background-color: yellow;"></div>
    <div style="height: 80vh;background-color: blue;"></div>
    <div style="height: 80vh;background-color: pink;"></div>
    <a href="#sanlou">上电梯</a>
    <a href="#yilou">上一楼</a>

</body>
</html>